﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpItemAdd.aspx.cs" Inherits="UI.ModSalary.EmpItemAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>增加员工基础工资项</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript">

        //将回车键改为tab键//

        document.onkeydown = function (event) 
        { 
          try{
            var evt = null;
            if (arguments.length==1){
                evt=arguments[0];
            }else{
                evt = (window.event ? window.event : null);
            }	
            if (evt.charCode){
                if (evt.charCode==13) 
                {
            	    var el=evt.srcElement || evt.target;
                    if (el){
        	            evt.charCode=9;
        	        }
                }
            }else{
                if (evt.keyCode==13) 
                {
            	    var el=evt.srcElement || evt.target;
                    if (el){
        	            evt.keyCode=9;
        	        }
                }
            }
          }catch(e){}
        }
    </script>
    <style type="text/css">
        td
        {
            height: 21px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <p style="text-align: center; font-size: large;">
        <strong>增加基础工资项</strong></p>

    <table style="width: 80%;" align="center" class="td">
        <tr>
            <td>
                员工编号:
            </td>
            <td>
                <asp:Label ID="lbEmpCode" runat="server"></asp:Label>
            </td>
            <td>
                员工姓名:
            </td>
            <td>
                <asp:Label ID="lbEmpName" runat="server"></asp:Label>
            </td>
        </tr>
          <tr>
            <td>
                入职时间:
            </td>
            <td>
                <asp:Label ID="lbJoinTime" runat="server"></asp:Label>
            </td>
            <td>
                状态:
            </td>
            <td>
                <asp:Label ID="lbState" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                部门名称:
            </td>
            <td>
                <asp:Label ID="lbDeptName" runat="server"></asp:Label>
            </td>
            <td>
                职位:
            </td>
            <td>
                <asp:Label ID="lbDutyName" runat="server"></asp:Label>
            </td>
        </tr>
         <tr>
            <td>
                开户银行:
            </td>
            <td>
              <asp:Label ID="lbBankName" runat="server"></asp:Label>
               
            </td>
            <td>
                银行账号: :
            </td>
            <td>
              <asp:Label ID="lbBankAccount" runat="server"></asp:Label>              
            </td>
        </tr>
        <tr>
            <td>
                工资级别:
            </td>
            <td>
                <asp:DropDownList ID="ddlSalGade" runat="server" CssClass="InputCss" Width="70px"                 >
                </asp:DropDownList>
            </td>
            <td>
                小时工资:
            </td>
            <td>
                <asp:TextBox ID="HourSalary" runat="server" CssClass="InputCss" Width="60px" ReadOnly="True"
                   >0</asp:TextBox>
                元/小时
            </td>
        </tr>
       
    </table>
    <asp:Panel ID="Panel1" runat="server">
    </asp:Panel>
    <table style="width: 80%;" align="center" class="td">
        <tr>
            <td style="width: 75px;">
                备注:
            </td>
            <td>
                <asp:TextBox ID="Memo" runat="server" CssClass="InputCss" Width="420px"
                    Rows="3" TextMode="MultiLine" 
                    onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
        </tr>
    </table>
    <p style="text-align: center;">
        <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click"   />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="btnUpdate_Click" />
        &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"
            OnClientClick="return confirm('确定要删除吗?\n');" />
        &nbsp;<asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="关闭"
            CausesValidation="False" />
    </p>
    </form>
</body>
</html>
